package com.qidian.mes.pojo;

import java.util.Date;
import java.util.List;


public class Department {
    private List<Department> children;
    private Long departmentId;
    private String departmentName;
    private Integer parent;
    private Long parentId;
    private Date createTime;
    private Date updateTime;
    private Integer departmentStatus;
    private Long createTimeMillis;
    private Long modifyTimeMillis;

    public Department() {
    }

    public Department(List<Department> children, Long departmentId, String departmentName, Integer parent, Long parentId, Date createTime, Date updateTime, Integer departmentStatus, Long createTimeMillis, Long modifyTimeMillis) {
        this.children = children;
        this.departmentId = departmentId;
        this.departmentName = departmentName;
        this.parent = parent;
        this.parentId = parentId;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.departmentStatus = departmentStatus;
        this.createTimeMillis = createTimeMillis;
        this.modifyTimeMillis = modifyTimeMillis;
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public List<Department> getChildren() {
        return children;
    }

    public void setChildren(List<Department> children) {
        this.children = children;
    }

    /**
     * 获取
     * @return departmentId
     */
    public Long getDepartmentId() {
        return departmentId;
    }

    /**
     * 设置
     * @param departmentId
     */
    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * 获取
     * @return departmentName
     */
    public String getDepartmentName() {
        return departmentName;
    }

    /**
     * 设置
     * @param departmentName
     */
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    /**
     * 获取
     * @return parentId
     */
    public Long getParentId() {
        return parentId;
    }

    /**
     * 设置
     * @param parentId
     */
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return departmentStatus
     */
    public Integer getDepartmentStatus() {
        return departmentStatus;
    }

    /**
     * 设置
     * @param departmentStatus
     */
    public void setDepartmentStatus(Integer departmentStatus) {
        this.departmentStatus = departmentStatus;
    }

    /**
     * 获取
     * @return createTimeMillis
     */
    public Long getCreateTimeMillis() {
        if(this.createTime != null) {
            return this.createTime.getTime();
        }
        return null;
    }

    /**
     * 设置
     * @param createTimeMillis
     */
    public void setCreateTimeMillis(Long createTimeMillis) {
        this.createTimeMillis = createTimeMillis;
    }

    /**
     * 获取
     * @return modifyTimeMillis
     */
    public Long getModifyTimeMillis() {
        if(this.updateTime != null) {
            return this.updateTime.getTime();
        }
        return null;
    }

    /**
     * 设置
     * @param modifyTimeMillis
     */
    public void setModifyTimeMillis(Long modifyTimeMillis) {
        this.modifyTimeMillis = modifyTimeMillis;
    }

    public String toString() {
        return "Department{departmentId = " + departmentId + ", departmentName = " + departmentName + ", parentId = " + parentId + ", createTime = " + createTime + ", updateTime = " + updateTime + ", departmentStatus = " + departmentStatus + ", createTimeMillis = " + createTimeMillis + ", modifyTimeMillis = " + modifyTimeMillis + "}";
    }
}
